home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
fg
/
fgl402e
/
expas.arj
/
TEMP
/
10-17.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-01-20
|
1KB
|
53 lines
program main;
uses fgmain, fgbitmap, fgmisc;
var
source : array [1..2560] of byte;
dest : array [1..3700] of byte;
begin
{ initialize the video environment }
fg_initpm;
fg_setmode(19);
{ draw a blue rectangle with a thick white border }
fg_setcolor(9);
fg_rect(0,63,0,39);
fg_setcolor(15);
fg_boxdepth(5,5);
fg_box(0,63,0,39);
fg_move(32,20);
fg_justify(0,0);
fg_print('SCALE',5);
{ retrieve the rectangle as a mode-specific bitmap }
fg_move(0,39);
fg_getimage(source,64,40);
fg_waitkey;
{ expand the bitmap by 10 pixels in each direction and }
{ then display it in the lower left corner of the screen }
fg_move(0,199);
fg_scale(source,dest,64,40,74,50);
fg_putimage(dest,74,50);
fg_waitkey;
{ reduce the original bitmap by 50% in each direction and }
{ then display it in the lower right corner of the screen }
fg_move(288,199);
fg_scale(source,dest,64,40,32,20);
fg_putimage(dest,32,20);
fg_waitkey;
{ restore 80x25 text mode and exit }
fg_setmode(3);
fg_reset;
end.